package enemies;


import com.badlogic.gdx.graphics.g2d.TextureRegion;
import com.doge.*;
import com.doge.Character;

public class SassyVikingGenie extends Character
{	
	public SassyVikingGenie( TextureRegion t, Tile position){
		super(t,position);
		
		name = "Sassy Viking Genie";
		
		health = 150;
		dogeCoins = 300;
		/*name, statamt, stat(0 = dmg, 1 = healing), energyreq*/
		battleActions.add(new BattleAction("Judge",15,0,10));
		battleActions.add(new BattleAction("Return to Lamp",50,1,15));
		battleActions.add(new BattleAction("Pillage, Conquer, and Demolish",300,0,60));
		battleActions.add(new BattleAction("Sleep",5,1,0));
	}
	
	public SassyVikingGenie( Tile position){
		this(Textures.sassyVikingGenie, position);
	}
	
	public BattleAction getNextAction()
	{
		energyRegen = 15;
		
		if(health <= 20 && energy > 60)
			return battleActions.get(2);
		else if (health > 50 && energy > 20)
			return battleActions.get(((int)Math.random())*(battleActions.size()-2));
		else 
		{
			energyRegen = 30;
			return battleActions.get(3);
		}
	}
}